package com.mengxuegu.springboot.service;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class ScheduleService {
    private static int count = 1;

    @Scheduled(cron = "*/3 * * * * MON-FRI")
    public void dataCount() {
        System.out.println("数据统计第" + count + "次");
        count += 1;
    }
}
